/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package games.Kamisado;

import games.Heuristic;
import games.KamisadoState;
import games.Tower;

/**
 *
 * @author Mikael
 */
/*public class Mikael2Heuristic implements Heuristic<KamisadoState> {
    private boolean isStart;

    @Override
    public int evaluate(KamisadoState state) {
        boolean ownerValue = !isStart;
        
        int score = 0;
        for(Tower tower : state.getAllTowers()){
            if(tower.getPlayer() == ownerValue){
                        score += (7 - tower.getY()) * 10;
                    }else{
                        score -= tower.getY() * 10;
                    }
        }
        
        return score;
    }
    
    @Override
    public void setAsStartPlayer(boolean isStart) {
        this.isStart = isStart;
    }
    
}*/

